package me.yricky.cbor

const val BYTE_FALSE     = 0xf4
const val BYTE_TRUE      = 0xf5
const val BYTE_NULL      = 0xf6
const val BYTE_UNDEFINED = 0xf7

const val MAJOR_NUM     = 0b000
const val MAJOR_NEG_NUM = 0b001
const val MAJOR_BA      = 0b010
const val MAJOR_STR     = 0b011
const val MAJOR_ARR     = 0b100
const val MAJOR_KV      = 0b101
const val MAJOR_OTHER   = 0b111

const val H3_MAJOR_NUM     = 0b00000000
const val H3_MAJOR_NEG_NUM = 0b00100000
const val H3_MAJOR_BA      = 0b01000000
const val H3_MAJOR_STR     = 0b01100000
const val H3_MAJOR_ARR     = 0b10000000
const val H3_MAJOR_KV      = 0b10100000
const val H3_MAJOR_OTHER   = 0b11100000

const val BYTE_MASK  = 0b11111111
const val LOW5_MASK  = 0b00011111
const val HIGH3_MASK = 0b11100000